package com.taotao;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RefreshScope
public class testc {

	
	//post localhost:7070/bus/refresh  开启配置文件刷新
	@Value("${my.test}")
    String test;

    @RequestMapping("/test")
    public String showLuckyWord() {
        return "The lucky word is: " + test;
    }

	public String getTest() {
		return test;
	}

	public void setTest(String test) {
		this.test = test;
	}


}